/*
 * PyrolysisHeatSourceKernal.h
 *
 *  Created on: 2017年7月24日
 *      Author: liuxiao
 *      用于计算热解热
 */


#pragma once

#include "MUltiPhasePyrolysisMaterial.h"//获得热解热参数
#include "ComputeRhoMaterial.h"//获得热解率参数
#include "Kernel.h"

class PyrolysisHeatSourceKernal : public Kernel
{
public:

	PyrolysisHeatSourceKernal(const InputParameters & parameters);

protected:
  virtual Real computeQpResidual();
  virtual Real computeQpJacobian();

private:
  const MaterialProperty<Real> & _drhos_dt;
  const MaterialProperty<Real> & _pyrolysis_heat;
  const MaterialProperty<Real> & _porosity;
};

template<>
InputParameters validParams<PyrolysisHeatSourceKernal>();
